package com.yunxi.dao.otd;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.otd.OtdWeekCalendar;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 周生产日历 Mapper 接口
 * </p>
 *
 * @author XUQI
 * @since 2019-05-17
 */
public interface OtdWeekCalendarMapper extends BaseMapperPlus<OtdWeekCalendar> {

    OtdWeekCalendar selectCalendarByWeek(@Param("year") String year, @Param("week") String week);

    Integer checkConflict(@Param("startDate") Date startDate,@Param("endDate") Date endDate,@Param("calendarId") String calendarId);

    OtdWeekCalendar selectCalendarByWeekNum(Integer weekNum);

    List<OtdWeekCalendar> selectWeekCalendarByMonth(@Param("year") String year, @Param("month") String month);

    List<OtdWeekCalendar> selectFivesCalendarByMonth(@Param("year") String year, @Param("week") String week);

    OtdWeekCalendar selectCalendarByDate(@Param("date") Date date);
}
